package com.ldp.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author 北巷_东坡
 * @date 2022/11/3 8:39
 * @computer 10741
 */
@Configuration
public class RestemConfig {
    @Bean
    @LoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

//    @Primary
//    @Bean
//    public RestTemplate restTemplate() {
//        return new RestTemplate();
//    }
}
